package com.aaa.hospital.ManagementEnd.service;

import com.aaa.hospital.ManagementEnd.pojo.DrugGathering;
import com.aaa.hospital.ManagementEnd.pojo.VisitingCard;
import com.aaa.hospital.ManagementEnd.util.MecharDB;
import com.aaa.hospital.ManagementEnd.util.MedicineCharge;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MedChargeSerevice {
    //通过处方单号进行查询该患者开具药品
    List<MedicineCharge> MedChargeAll(Integer diaid);
    boolean dginsert(DrugGathering drugGathering);

    //患者卡号，余额
   // 判断余额，购药扣钱
    boolean Byvisid(Integer visid,Integer price);

    //修改药单状态
    boolean   ydstate(Integer diaid);
    //收费详情
    List<MecharDB> queryList();
    //药品查询，与上一起用
    List<MedicineCharge>  queryListById(Integer diaid);
    //药品查询，与上一起用
    List<MecharDB> queryListlimit(String name);
    //扣除金额
    boolean  visprice(@Param("visid") Integer visid, @Param("price") Integer price);
}
